/*
 * PedIncApp.java
 *
 * 
 * Program: PedIncApp.java
 * Author: Sanjib Narzary
 * Territory: India
 * Author Email: ensilage@googlemail.com
 *
 *
 * Copyright (C) 2008 Sanjib Narzary
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 * 
 * 
 * Program: PedIncApp.java
 */

package pedinc;

import javax.swing.JMenuItem;
import org.jdesktop.application.Application;
import org.jdesktop.application.SingleFrameApplication;

/**
 * The main class of the application.
 */
public class PedIncApp extends SingleFrameApplication {

    /**
     * At startup create and show the main frame of the application.
     */
    @Override protected void startup() {
        show(new PedIncView(this));
    }

    /**
     * This method is to initialize the specified window by injecting resources.
     * Windows shown in our application come fully initialized from the GUI
     * builder, so this additional configuration is not needed.
     */
    @Override protected void configureWindow(java.awt.Window root) {
    }

    /**
     * A convenient static getter for the application instance.
     * @return the instance of PedIncApp
     */
    public static PedIncApp getApplication() {
        return Application.getInstance(PedIncApp.class);
    }

    /**
     * Main method launching the application.
     */
    public static void main(String[] args) {
        launch(PedIncApp.class, args);
    }

    void show(JMenuItem showCredit) {
        throw new UnsupportedOperationException("Not yet implemented");
    }
}
